package com.example.beanfactorypostprocessor;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Date 2022/1/20
 * @Created by Jonathan
 */
public class BeanDefinitionRegistryPostProcessorMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		Object a = context.getBean("a");
		Object a1 = context.getBean("a");
		System.out.println(a);
		System.out.println(a1);
	}
}
